{include file="pageheader.htm"}
<form action="flashplay.php" method="post" enctype="multipart/form-data">
<div class="main-div">
<table cellspacing="1" cellpadding="3" width="100%">
  <tr>
    <td class="label"><a href="javascript:showNotice('width_height');" title="{$lang.form_notice}"><img src="images/notice.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"></a>{$lang.img_src}</td>
    <td><input type="file" name="pic" value="" id="some_name" size="40" />
    {if $rt.pic}&nbsp;&nbsp;<a href="{$rt.pic}" target="_blank"><img src="images/icon_view.gif" vspace="" border="0" align="absmiddle" /></a>{/if}
    <span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="width_height"></span>
    </td>
  </tr>
  <tr>
    <td class="label">{$lang.img_url}</td>
    <td><input name="link" id="link" type="text" value="{$rt.link}" size="40" /></td>
  </tr>
  <tr>
    <td class="label">{$lang.schp_imgdesc}</td>
    <td><input name="title" type="text" id="title" value="{$rt.title}" size="40" /></td>
  </tr>
  <tr>
    <td class="label">{$lang.schp_sort}</td>
    <td><input name="sort_order" type="text" value="{$rt.sort_order}" size="4" maxlength="3"/></td>
  </tr>
  <tr align="center">
    <td colspan="2">
    {if $rt.id}
      <input type="hidden"  name="id"       value="{$rt.id}" />
    {/if}
      <input type="hidden"  name="step"       value="2" />
      <input type="hidden"  name="act"       value="{$rt.act}" />
      <input type="submit" class="button" name="Submit"       value="{$lang.button_submit}" onclick="return checkForm()" />
      <input type="reset" class="button"  name="Reset"        value="{$lang.button_reset}" />
    </td>
  </tr>
</table>
</div>
</form>
<script type="Text/Javascript" language="JavaScript">
function checkForm(){
	if(!document.getElementById('link').value){
		alert("请输入图片链接！");
		document.getElementById('link').focus();
		return false;
	}
	if(!document.getElementById('title').value){
		alert("请输入图片说明！");
		document.getElementById('title').focus();
		return false;
	}
	return true;
}
</script>
{include file="pagefooter.htm"}